package zhuangshizhe;

public class Coffee {

	public static void main(String[] args) {
		Beverage beverage = new Kafei();
		System.out.println(beverage.getDescription()+"====cost===="+beverage.costa());
		
		Beverage beverage2 = new Kafei2();
		beverage2 = new Mocha(beverage2);
		beverage2 = new Mocha(beverage2);
		beverage2 = new Whip(beverage2);
		
		System.out.println(beverage2.getDescription()+"====cost===="+beverage2.costa());
		
		Beverage beverage3 = new Kafei3();
		beverage3 = new Soy(beverage3,Beverage.VENTI);
		beverage3 = new Soy(beverage3,Beverage.GRANDE);
		beverage3 = new Whip(beverage3);
		
		System.out.println(beverage3.getDescription()+"====cost===="+beverage3.costa());
	}
}
